package ${basePkg}.service.impl;

import ${basePkg}.dao.I${className}Dao;
import ${basePkg}.domain.${className};
import ${basePkg}.query.PageResult;
import ${basePkg}.query.QueryObject;
import ${basePkg}.service.I${className}Service;

import java.util.List;

public class ${className}ServiceImpl implements I${className}Service {
	private I${className}Dao dao;
	

	public void setDao(I${className}Dao dao) {
		this.dao = dao;
	}

	@Override
	public void save(${className} ${objectName}) {
		dao.save(${objectName});

	}

	@Override
	public void update(${className} ${objectName}) {
		dao.update(${objectName});

	}

	@Override
	public void delete(${className} ${objectName}) {
		dao.delete(${objectName});

	}

	@Override
	public ${className} get(Long id) {
		return dao.get(id);
	}

	@Override
	public List<${className}> list() {
		return dao.list();
	}

	@Override
	public PageResult query(QueryObject qo) {
		return dao.query(qo);
	}
	
	

}
